热修复框架

chengzhenyu преди 8 години
родител
ревизия
91f3df26c0

+ 1 - 1
.idea/gradle.xml

@@ -5,7 +5,7 @@
5 5
       <GradleProjectSettings>
6 6
         <option name="distributionType" value="LOCAL" />
7 7
         <option name="externalProjectPath" value="$PROJECT_DIR$" />
8
-        <option name="gradleHome" value="C:/Android/gradle-3.3" />
8
+        <option name="gradleHome" value="C:/Android/gradle-3.1" />
9 9
         <option name="modules">
10 10
           <set>
11 11
             <option value="$PROJECT_DIR$" />

+ 17 - 0
app/build.gradle

@@ -78,3 +78,20 @@ dependencies {
78 78
     compile project(path: ':views')
79 79
     compile 'com.umeng.analytics:analytics:latest.integration'
80 80
 }
81
+buildscript {
82
+    repositories {
83
+        jcenter()
84
+        maven {
85
+            url uri('..\\repo')
86
+        }
87
+    }
88
+    dependencies {
89
+        //group:module:version
90
+        classpath 'com.android.plugin.hotpatch:hotpatch:1.0.0'
91
+    }
92
+}
93
+apply plugin: 'plugin.hotpatch'
94
+
95
+hotpatch{
96
+    includePackageDir='ai\\pai\\client'
97
+}

BIN
app/libs/hotpatch_framework.jar


+ 8 - 1
app/proguard-project.txt

@@ -123,4 +123,11 @@ public static final int *;
123 123
     public static *** w(...);
124 124
     public static *** v(...);
125 125
     public static *** i(...);
126
-}
126
+}
127
+-keepclassmembers class *{
128
+    public static com.android.hotpatch.framework.ChangeQuickRedirect changeQuickRedirect;
129
+}
130
+-keepclassmembers class * {
131
+   public java.lang.Object accessSuper(java.lang.Object,int,java.lang.Object[]);
132
+}
133
+-keep class com.android.hotpatch.**{*;}

+ 0 - 17
app/proguard-rules.pro

@@ -1,17 +0,0 @@
1
-# Add project specific ProGuard rules here.
2
-# By default, the flags in this file are appended to flags specified
3
-# in C:\Android\SDK/tools/proguard/proguard-android.txt
4
-# You can edit the include path and order by changing the proguardFiles
5
-# directive in build.gradle.
6
-#
7
-# For more details, see
8
-#   http://developer.android.com/guide/developing/tools/proguard.html
9
-
10
-# Add any project specific keep options here:
11
-
12
-# If your project uses WebView with JS, uncomment the following
13
-# and specify the fully qualified class name to the JavaScript interface
14
-# class:
15
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16
-#   public *;
17
-#}

BIN
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.jar


+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.jar.md5

@@ -0,0 +1 @@
1
+04cbb405b312665f00431c8336b47edc

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.jar.sha1

@@ -0,0 +1 @@
1
+b621d002b8c17885daff42fd81164384aba7a7fc

+ 22 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.pom

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+  <modelVersion>4.0.0</modelVersion>
5
+  <groupId>com.android.plugin.hotpatch</groupId>
6
+  <artifactId>hotpatch</artifactId>
7
+  <version>1.0.0</version>
8
+  <dependencies>
9
+    <dependency>
10
+      <groupId>com.android.tools.build</groupId>
11
+      <artifactId>gradle</artifactId>
12
+      <version>2.2.3</version>
13
+      <scope>compile</scope>
14
+    </dependency>
15
+    <dependency>
16
+      <groupId>org.javassist</groupId>
17
+      <artifactId>javassist</artifactId>
18
+      <version>3.22.0-CR1</version>
19
+      <scope>compile</scope>
20
+    </dependency>
21
+  </dependencies>
22
+</project>

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.pom.md5

@@ -0,0 +1 @@
1
+640d4ea0944d59a7d903ec7f0bfeee75

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/1.0.0/hotpatch-1.0.0.pom.sha1

@@ -0,0 +1 @@
1
+cfddca111bee94e07609aa18512e0fcf2a3f856c

+ 12 - 0
repo/com/android/plugin/hotpatch/hotpatch/maven-metadata.xml

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<metadata>
3
+  <groupId>com.android.plugin.hotpatch</groupId>
4
+  <artifactId>hotpatch</artifactId>
5
+  <versioning>
6
+    <release>1.0.0</release>
7
+    <versions>
8
+      <version>1.0.0</version>
9
+    </versions>
10
+    <lastUpdated>20170303105421</lastUpdated>
11
+  </versioning>
12
+</metadata>

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/maven-metadata.xml.md5

@@ -0,0 +1 @@
1
+89037efcccecda6a668c32743755b699

+ 1 - 0
repo/com/android/plugin/hotpatch/hotpatch/maven-metadata.xml.sha1

@@ -0,0 +1 @@
1
+93d08fd1b04f250f96c8acf7390f14028d49ec06